//
//  GameSetupViewController.h
//  fugitive
//
//  Created by Eugene Bistolas on 5/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h> 
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "BSForwardGeocoder.h"
#import "BSKmlResult.h"
#import "CustomPlacemark.h"
#import "DDAnnotation.h"
#import "DDAnnotationView.h"
#import "Powerup.h"
#import "DurationViewController.h" 

#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3
#define BUTTON 0
#define IMAGE 1

@interface GameSetupViewController : UIViewController  <MKMapViewDelegate, CLLocationManagerDelegate, BSForwardGeocoderDelegate, UISearchBarDelegate> {
   CLLocationManager *loc; 
   BSForwardGeocoder *forwardGeocoder;
   IBOutlet UISearchBar *searchBar;
   CLLocationCoordinate2D currLoc; 
   IBOutlet UIButton *startButton;
   IBOutlet UIButton *endButton;
   DDAnnotation *startPin;
   DDAnnotation *stopPin; 
   IBOutlet UIButton *backButton;
   IBOutlet UIImageView *pickImage;
   IBOutlet UIImageView *pathImage;
   IBOutlet UIImageView *yourImage;
   IBOutlet UIButton *nextButton;
   BOOL isInStartMode; 
   BOOL isInEndMode; 
   BOOL isUp;
   BOOL nextValid; 
}

@property (nonatomic, retain) BSForwardGeocoder *forwardGeocoder;
@property (nonatomic, assign) IBOutlet MKMapView *mapView; 

-(void)animateViews:(BOOL)moveup;
- (void) searchbarDelay;
- (IBAction) startButton;
- (IBAction) stopButton; 
- (IBAction) backButton;
- (IBAction) nextButton; 
-(void)animateButtonOrImage:(int) type direction:(int) d tag:(int) t amount:(int) a speed:(double)s;


- (void) introAnimation;
- (void) hideIntro;
-(void) animateInPick;
-(void) animateInYour;
-(void) animateInPath; 
-(void) animateOutPick;
-(void) animateOutYour;
-(void) animateOutPath; 
-(void) animateInButtons;
@end
